//
//  CZGestureImageView.m
//  nsj_iOS
//
//  Created by apple on 2016/12/7.
//  Copyright © 2016年 GCZ. All rights reserved.
//

#import "CZGestureImageView.h"

@implementation CZGestureImageView


- (instancetype)initWithDeledate:(id)delegate action:(SEL)action
{
    self = [super init];
    if (self) {
        self.userInteractionEnabled = YES;
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:delegate action:action];
        [self addGestureRecognizer:tap];
    }
    
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
